package com.ruiysoft.entity.logistics;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author AUTO GEN
 * @since 2018-11-17
 */
@TableName("logistics_company_base")
public class LogisticsCompanyBase extends Model<LogisticsCompanyBase> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("union_code")
    private String unionCode;

    @TableField("union_name")
    private String unionName;

    @TableField("short_code")
    private String shortCode;

    @TableField("show_order")
    private Integer showOrder;

    private String remarks;

    /**
     * 是否有效
     */
    private Boolean enabled;

    public Integer getId() {
        return id;
    }

    public LogisticsCompanyBase setId(Integer id) {
        this.id = id;
        return this;
    }
    public String getUnionCode() {
        return unionCode;
    }

    public LogisticsCompanyBase setUnionCode(String unionCode) {
        this.unionCode = unionCode;
        return this;
    }
    public String getUnionName() {
        return unionName;
    }

    public LogisticsCompanyBase setUnionName(String unionName) {
        this.unionName = unionName;
        return this;
    }
    public String getShortCode() {
        return shortCode;
    }

    public LogisticsCompanyBase setShortCode(String shortCode) {
        this.shortCode = shortCode;
        return this;
    }
    public Integer getShowOrder() {
        return showOrder;
    }

    public LogisticsCompanyBase setShowOrder(Integer showOrder) {
        this.showOrder = showOrder;
        return this;
    }
    public String getRemarks() {
        return remarks;
    }

    public LogisticsCompanyBase setRemarks(String remarks) {
        this.remarks = remarks;
        return this;
    }
    public Boolean getEnabled() {
        return enabled;
    }

    public LogisticsCompanyBase setEnabled(Boolean enabled) {
        this.enabled = enabled;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "LogisticsCompanyBase{" +
        "id=" + id +
        ", unionCode=" + unionCode +
        ", unionName=" + unionName +
        ", shortCode=" + shortCode +
        ", showOrder=" + showOrder +
        ", remarks=" + remarks +
        ", enabled=" + enabled +
        "}";
    }
}
